package com.itqf.controller;

import com.itqf.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * projectName: springmvcgp8
 *
 * @author: 赵伟风
 * time: 2021/8/6 14:41
 * description:
 */

@RestController
@RequestMapping("json")
//@CrossOrigin("*")
public class JsonController {


    @GetMapping("ret")
    public User ret(User user){

        System.out.println("user = " + user);

        return user;
    }


}
